package Servidor;

import java.rmi.*;
import java.rmi.registry.LocateRegistry;

public class ServerMain
{
	final static String HOST_URL = "//localhost:7777/Servidor";
	
	public static void main(String[] args)/////ok
	{
		try
		{
			LocateRegistry.createRegistry(7777);
			IServidor servidor = new Servidor();
			Naming.bind(HOST_URL, servidor);
			//Thread.sleep(10000);
		}
		catch(Exception e)
		{
			System.out.println("Erro: " + e);
		}
	}	
}
